var form;
var table;
var $;
layui.use(['layer','form','table'],function(){
    form = layui.form;
    table=layui.table;
    $=layui.$;
});

$('#confirm').on('click',function(){
    var productCode=$('input[name=productCode]').val();
    var productName=$('input[name=productName]').val();
    var currentpriceProduct=$('input[name=currentpriceProduct]').val();
    var categroyName=$('input[name=categroyName]').val();
    var trueName=$('input[name=trueName]').val();

    parent.$("input[name='productCode1']").val(productCode);
    parent.$("input[name='productName1']").val(productName);
    parent.$("input[name='currentpriceProduct1']").val(currentpriceProduct);
    parent.$("input[name='categroyName1']").val(categroyName);
    parent.$("input[name='trueName1']").val(trueName);

    parent.sousuo();

    var layer_1=parent.layer_1;
    layer_1.close(layer_1.index);
})
//重置
$('#reset').on('click',function(){
    $("input").val("");
    $(this).find("option:selected").removeAttr("selected");
})